module.exports={
  request(options){
    let token=wx.getStorageSync("token")
    if(token&&options){
      if(!options.header){
        options.header={}
      }
      options.header['cookie'] = "token=" + token
      console.log(token, options)
      wx.request(options)
    }
  }
}